from pydantic import ConfigDict

from app.models.base import SQLBaseModel, IdType
from app.models.dict_type import BaseDictType
from app.utils.decorators.optional import optional


class DictTypeCreate(BaseDictType):
    pass

@optional(without_fields=["id"])
class DictTypeUpdate(BaseDictType):
    id: IdType


class DictTypeOut(SQLBaseModel, BaseDictType):
    model_config = ConfigDict(from_attributes=True)

class DictTypeExport(DictTypeOut):
    model_config = ConfigDict(from_attributes=True)
